import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import 'swiper/swiper.min.css'
import axios from 'axios'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import VueAMap from 'vue-amap'
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(Antd)
Vue.use(mavonEditor)
Vue.use(VueAMap)
Vue.prototype.$http = axios
VueAMap.initAMapApiLoader({
  key: '1e37c4838d007d3f979720c0973c1df6',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4',
  uiVersion: '1.1'
})

// 设置访问路径 http://localhost:8001
axios.defaults.baseURL = 'http://8.140.96.28:8001'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
